#pragma once
#include "PipeMessage.h"

class TileMessage : public PipeMessage
{
public:
	typedef struct STileMsg
	{
		UINT tileLine;
		UINT tileCol;
		char letter;
	}TileMsgData;

private:
	TileMsgData mData;

protected:
	virtual UINT CreateBuffer(UINT _startPos = 0);
	virtual void ParseBuffer();
	virtual UINT GetBufferSize();

public:
	TileMessage(MessageType _type, BYTE* _buffer = NULL);

public:
	void SetData(UINT _line, UINT _col, char _letter=' ');
	const TileMsgData& Data() const { return mData; }
};

